Return to doc.sitecore.com

Valid for Sitecore 5.3
Multiple Indexes in DtSearch

Q:

I have a Sitecore running several domains

I would like to build a separate index for each of these sites in DtSearch.

Can I have more than one index in DtSearch?

A:  

Yes, you can have more than one index in DtSearch.

Create some indexes for your sites (e.g. Site01.com, Site02.com, Site03.es).

And add the following lines in the web.config file.  

      <setting name="dtSearchEngine" value="Sitecore.Modules.dtSearch.Core.dtSearchEngine" />

      <setting name="dtSearchIndexer" value="Sitecore.Modules.dtSearch.Core.dtSearchIndexer" />

 

      <!--Index for Site01.com -->

      <setting name="dtSearchIndexFolder_Site01com" value="/index/" />

      <setting name="dtSearchIndexName_Site01com" value="Site01com" />

 

      <!--Index for Site02.com -->

      <setting name="dtSearchIndexFolder_Site02com" value="/index/" />

      <setting name="dtSearchIndexName_Site02com" value="Site02.com" />

 

      <!--Index for Site03.es -->

      <setting name="dtSearchIndexFolder_Site03es" value="/index/" />

      <setting name="dtSearchIndexName_Site03es" value="Site03.es" />  

You can use the attached sample as an example for switching between your domains.